package com.finalministry.server;

import java.io.File;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.apache.commons.io.FileUtils;

@Path("/export")
public class ButtonExport {

	@GET
	@Produces(MediaType.APPLICATION_XHTML_XML + ";charset=utf-8")
	public String showExportPage() throws Exception {

		return FileUtils.readFileToString(new File("src/main/resources/web/export.htm"))
				.replaceAll("#HOME#", FinalministryWebServer.contentUrl);
	}
}
